package com.disgruntledbots;

import org.andengine.extension.physics.box2d.PhysicsFactory;
import org.andengine.extension.physics.box2d.PhysicsWorld;
import org.andengine.opengl.texture.region.ITextureRegion;
import org.andengine.opengl.vbo.VertexBufferObjectManager;

import com.badlogic.gdx.physics.box2d.FixtureDef;
import com.badlogic.gdx.physics.box2d.BodyDef.BodyType;

public class ImmovableRectangleSpriteConnector extends PhysicsEntityConnector {
	
	public ImmovableRectangleSpriteConnector(float X, float Y,ITextureRegion texture,
			VertexBufferObjectManager vbom, PhysicsWorld pWorld) {
		
		super(X, Y, texture, vbom, pWorld, 0,0,0);
	}

	@Override
	protected float getDensity(float mass){
		return 0f;
	}
	
	protected void createBody(PhysicsWorld pWorld, FixtureDef fixDef)
	{
		this.mBody = PhysicsFactory.createBoxBody(pWorld, this.mSprite, BodyType.StaticBody, fixDef);
	}
}
